package test.service;

import org.zw.android.framework.http.HttpUIHandlerDownload;

import android.content.Context;
import android.os.Message;
import android.widget.Toast;

public abstract class AppDownloadHandler extends HttpUIHandlerDownload {

	public AppDownloadHandler(Context context) {
		super(context);
	}
	
	@Override
	protected void notifyDownloadProgress(Object obj, int total,int readed) {
		
		if(mContext != null){
			Toast.makeText(mContext, "下载进度=" + total, Toast.LENGTH_SHORT).show();
		}
	}
	
	@Override
	protected abstract void notifyDownloadFinish(Message msg);
}
